<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
     <!-- <h2> <%= t :re_enter%></h2> -->
      
      <h2><%= pluralize(@user.errors.count, t(:error)) %> <%= t(:er)%></h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
     
      
    </div>
  <% end %>

		<table width="629" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		    <td width="153" scope="col"><label for="studentId" ><%= t :studentid%></label></td>
		    <th width="463" align="left" scope="col"><%= f.text_field :studentId %></th>
		  </tr>
		  <tr>
		    <td align="left"><label for="password" ><%= t :password%> </label></td>
		    <td align="left"><%= f.password_field :password, :size => 30 %></td>
		  </tr>
		  <tr>
		    <td><%= f.label :password_confirmation, t(:confirmpass) %> </td>
		    <td align="left"><%= f.password_field :password_confirmation, :size => 30 %></td>
		  </tr>
		  <tr>
		    <td> <label for="firstName" ><%= t :firstname%></label></td>
		    <td align="left"><%= f.text_field :firstName %></td>
		  </tr>
		  <tr>
		    <td><label for="lastName" ><%= t :lastname%></label></td>
		    <td align="left"><%= f.text_field :lastName %></td>
		  </tr>
		  <tr>
		    <td><label for="address" ><%= t :address%></label></td>
		    <td align="left"> <%= f.text_field :address %></td>
		  </tr>
		  <tr>
		    <td><label for="phoneNumber" ><%= t :phonenumber%></label></td>
		    <td align="left"><%= f.text_field :phoneNumber %></td>
		  </tr>
		  <tr>
		    <td><label for="emailAddress" >Email:</label> </td>
		    <td align="left"><%= f.text_field :emailAddress %></td>
		  </tr>
		  <tr>
		    <td>&nbsp;</td>
		    <td>
		    	<div class="actions">
    				<%= f.submit t(:register) %>
  				</div>
  			</td>
		  </tr>
		</table>

 
  
  
<% end %>
